//
//  BaseResponseOfModel.swift
//  DSHCMerchant
//
//  Created by 罗德良 on 2018/4/15.
//  Copyright © 2018年 袋鼠好车. All rights reserved.
//

import UIKit
import HandyJSON
class BaseResponseOfModel <T: HandyJSON>: HandyJSON {
    var status :Bool?
    var msg :String = ""
    var data: T?
    public required init() {}
}

class BaseResponseOfArrayModel <T: HandyJSON>: HandyJSON {
    var status :Bool?
    var msg :String = ""
    var data: [T]?
    public required init() {}
}

class BaseArrayData <T: HandyJSON>: HandyJSON {
    
    var data: [T]?// 具体的data的格式和业务相关，故用泛型定义
    var total:String = ""
    var total_price:String = ""
    var last_page:Int?
    public required init(){}
}

class BaseData <T: HandyJSON>: HandyJSON {
    
    var data: T?// 具体的data的格式和业务相关，故用泛型定义
    public required init(){}
}

class DefaultData : HandyJSON {
    
    var status :Bool?
    var msg :String = ""
    var pay :String = ""
    var data :DataModel?
    public required init(){}
}

class DataModel : HandyJSON {
    
    var balance :Double?
    public required init(){}
}


